function getUrlmessag() {
    let test = window.location.search;//?pid=609037
    test = test.slice(1).split("&");
    let urlObj = {};
    test.forEach(item => {
      let arr = item.split("=");
      urlObj[arr[0]] = arr[1];
    });
    return urlObj;
  }
  const urlObj = getUrlmessag();